package tedu.api.binary;

public class Demo08 {
    public static void main(String[] args) {
        int n = 0x2eb73737;
        int num = 0xff;
        int n4 = n & num;
        int g = n>>>8;
        int n3 = g & num;
        g = g>>>8;
        int n2 = g & num;
        g = g >>> 8;
        int n1 = g & num;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(n1));
        System.out.println(Integer.toBinaryString(n2));
        System.out.println(Integer.toBinaryString(n3));
        System.out.println(Integer.toBinaryString(n4));

        int nn = (n1<<24) | (n2<<16) | (n3<<8) | n4 ;
        System.out.println(Integer.toBinaryString(nn));

    }
}
